#define _CRT_SECURE_NO_WARNINGS 1
#include"Sort.h"


void TestSort()
{
	int a[] = { 1,3,2,5,78,54,0,9,22,17,24,-12 };
	Print(a, sizeof(a) / sizeof(a[0]));
	BubbleSort(a, sizeof(a) / sizeof(a[0]));
	Print(a, sizeof(a) / sizeof(a[0]));
}

void TestQuickSort()
{
	int a[] = { 6,1,2,7,9,3,4,5,10,8 };
	Print(a, sizeof(a) / sizeof(a[0]));
	QuickSort(a, 0, (sizeof(a) / sizeof(a[0]) - 1));
	Print(a, sizeof(a) / sizeof(a[0]));
}
int main()
{
	//TestSort();
	TestQuickSort();
	return 0;
}